﻿package com.javaPattern.Decorator;

public class HelloWorld extends Decorate {

	public HelloWorld(Component decorate) {
		super(decorate);
	}

	public void sayHello() {
		super.sayHello();
		sayWorld();
	}

	private void sayWorld() {
		System.out.print("World!");
	}

}
